import Vue from 'vue'
import VueRouter from 'vue-router'

import Index from './index.vue'
import inforList from './views/inforList.vue'
import articleList from './views/articleList.vue'

Vue.use(VueRouter);

Vue.config.productionTip = false

const routes = [
    { path: '/inforList', component: inforList },
    { path: '/articleList', component: articleList },
    { path: '*', redirect: '/inforList' }

]

const router = new VueRouter({
    routes
});

new Vue({
  el: '#app',
  router,
  template: '<Index/>',
  components: { Index}
})

// var app = new Vue({
//     el: '#app2',
//     router,
//     render: h => h(matchCenter)
// })